package org.redis.cluster.transport.support;

import org.redis.cluster.transport.ByteBuffer;

public abstract class AbstractByteBuffer implements ByteBuffer {

	@Override
	public byte[] array() {
		position(0);
		byte result[]=new byte[readableBytes()];
		readBytes(result);
		return result;
	}
}